<?php

/**

 * 实物订单结算

 * * @网店运维 (c) 2015-2018  Inc. (http://www.shopwwi.com)
 * @license    http://www.shopwwi.c om
 * @link       交流群号：111731672
 * @since      网店运维提供技术支持 授权请购买shopnc授权

 */

//use Shopnc\Tpl;





defined('InShopNC') or exit('Access Invalid!');

class seller_billControl extends mobileSellerControl {

    public function __construct() {

        parent::__construct() ;

    }



    /**

     * 结算列表

     *

     */

    public function listOp() {

        $model_bill = Model('bill');

        $condition = array();

        $condition['ob_store_id'] = $this->store_info['store_id'];

        if (preg_match('/^\d+$/',$_POST['ob_id'])) {

            $condition['ob_id'] = intval($_POST['ob_id']);

        }

        if (is_numeric($_POST['bill_state'])) {

            $condition['ob_state'] = intval($_POST['bill_state']);

        }

        $bill_list = $model_bill->getOrderBillList($condition, '*', $this->page, 'ob_state asc,ob_id asc');



        $page_count = $model_bill->gettotalpage();

        output_data(array('bill_list' => $bill_list), mobile_page($page_count));

    }

}

